Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix infinite query fetching when refetchOnMountOrArgChange is true #4795

Conversation

markerikson
Copy link
Collaborator

This PR:

  • Consolidates some test assertions
  • Adds tests that fail with the existing infinite query behavior when refetchOnMountOrArgChange is true
  • Tweaks the infinite query logic to only check for arg.forcedRefetch instead

Copy link

codesandbox bot commented Dec 30, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

codesandbox-ci bot commented Dec 30, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f56d0ae:

Sandbox Source
@examples-query-react/basic Configuration
@examples-query-react/advanced Configuration
@examples-action-listener/counter Configuration
rtk-esm-cra Configuration

@markerikson markerikson force-pushed the bugfix/infinite-query-refetchonmount branch from 923d351 to f56d0ae Compare December 30, 2024 19:39
@markerikson markerikson merged commit c9cc8ca into feature/infinite-query-integration Dec 30, 2024
83 checks passed
@aryaemami59 aryaemami59 deleted the bugfix/infinite-query-refetchonmount branch January 3, 2025 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant